package org.codeart.ioc.controller;

import org.codeart.ioc.annotation.Component;
import org.codeart.ioc.annotation.Inject;
import org.codeart.ioc.pojo.User;
import org.codeart.ioc.service.UserService;

import java.util.List;

@Component
public class UserController {

    @Inject
    private UserService userService;
    
    public List<User> getUserList() {
        return userService.getUserList();
    }
}
